package com.bis.ymyy.mapper;

import com.bis.ymyy.entity.Employee;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EmployeeMapper {
    // 查询所有
    List<Employee> getAllEmployee();
    // 新增
    int addOneEmployee(Employee employee);
    // 修改
    int modifyEmployee(Employee employee);
    // 删除
    int deleteEmployee(int id);
    // 根据id查询
    Employee findById(int id);
}
